//
//  WMEAlbumModel.m
//  everyDay_duiTang
//
//  Created by 恩叔 on 16/2/19.
//  Copyright © 2016年 enshu. All rights reserved.
//

#import "WMEAlbumModel.h"

@implementation WMEAlbumModel
- (void)dealloc
{
    [_username release];
    [_avatar release];
    [_userId release];
    [_category release];
    [_like_count release];
    [_count release];
    [_selfId release];
    [_name release];
    [_created_at release];
    [_covers release];
    [super dealloc];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"user"]) {
        self.username = value[@"username"];
        self.userId = value[@"id"];
        self.avatar = value[@"avatar"];
    }
    if ([key isEqualToString:@"id"]) {
        self.selfId = value;
    }
//    if ([key isEqualToString:@"covers"]) {
//        for (NSString *str in value) {
//            self.covers = str;
//        }
//    }
}

@end
